import request from '@/utils/request';

// ...value,
// uid:localStorage.getItem('uid'),
// type,
// teacherType,
// pageSize:10,
// pageNo,
export async function getClassroomListV1(params?: any) {
  return request('/app-admin/outsourcing/teacher/classroomListV1', {
    params,
  });
}

export async function checkAuthority(activityId: number,userId: number) {
  return request('/app-admin/huanXin/chatGroup/queryUserRoleAtActivity', {
    params:{
      activityId,userId
    }
  });
}



//https://yapi.iqidao.com/project/103/interface/api/4197
// 课堂列表接口
// type	是	课堂类型 0 站立式课堂  5 分屏课堂
// teacherType	是	教师类型  0 主讲老师 1 辅导老师
// status 课程状态  0：未开始 1：正在讲课 2：讲课暂停 3：讲课结束 4：课程已取消

export async function getClassroomList(params: any) {
  return request('/app-admin/huanXin/chatGroup/queryUserRoleAtActivity', {
    params:{
      ...params,
      uid: localStorage.getItem('uid'),
      type: 6,
      teacherType: 0,
      pageSize: 20,
    }
  });
}

